package com.taijihuabao.modules.mapper;

import com.taijihuabao.modules.entity.LeaveBusinessEntity;

/**
 * 审批
 *
 * @author Xiao
 */

public interface LeaveBusinessMapper {

    /**
     * 根据业务编码查询请假业务
     *
     * @param businessId
     * @return
     */
    LeaveBusinessEntity selectOne(String businessId);

    /**
     * 根据id查询请假业务
     *
     * @param id
     * @return
     */
    LeaveBusinessEntity selectById(Long id);

    /**
     * 新增请假业务
     *
     * @param leaveBusinessEntity
     */
    void insertLeaveBusiness(LeaveBusinessEntity leaveBusinessEntity);

    /**
     * 修改请假业务
     *
     * @param leaveBusinessEntity
     */
    void updateLeaveBusiness(LeaveBusinessEntity leaveBusinessEntity);

    /**
     * 删除请假业务
     *
     * @param leaveBusinessEntity
     */
    void deleteApprovalBusiness(LeaveBusinessEntity leaveBusinessEntity);

}
